<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>


    <script src="../js/tools.js"></script>
    <script>

        // 累加   sum=0  sum+=i
        // 累计拼接   sum=''  sum+=i


        // 数字验证码  0012  ---- 是字符串
        // 思路  生成0-10之间的随机数   拼接     初始值 sum=''

        // var a = parseInt(Math.random() * 10);

        // var a = parseInt(Math.random() * 10);
        // var a = parseInt(Math.random() * 10);
        // var a = parseInt(Math.random() * 10);



        // var a = randCode(10);
        // document.write(a);






        document.write(randCode(5));

    </script>

</body>

</html>